<?php
include_once 'application/application.php';

$params = array();



if (Arr::getValue($_REQUEST, 'action', false) == 'login') {
    Auth::login ();
    if (Auth::isLogged()) reLocate ('index.php');
}


include_once APP_PAGE_PARTS.'header.php';
echo Navbar::getHorisontalBar(Auth::isLogged());

echo Auth::loginForm(Auth::isLogged());

if (Auth::isLogged()) {
    $params = array(
        'leftmenu'  => Navbar::getVerticalBar('leftmenu'),//includeFile(APP_PAGE_PARTS.'leftmenu.php'),
        'content'   => 'Logged in. Здесь можно повесить всякую фигню.'
    );
    include APP_PAGE_PARTS.'columns.php';
}

include_once APP_PAGE_PARTS.'footer.php';




?>